import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";
import { DecisionTreeNode } from "framework/FSM/DecisionTree/DecisionTreeNode";
 
export class DecisionTerminalActive <T extends IStateArg<Room >> extends BinaryDecision<T>
{


    public testValue(arg:T): boolean
    {
        const memory = arg.entity.getNodeMemory();
        const core = arg.entity.getEntity("CoreEntity");
        if(memory.Tasks["terminal"] && memory.Tasks["terminal"] .length>0 && core.Terminal )
        {
            return true
        }
        return false;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

